<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp" %>
	<div class="row">
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
        <div class="x_title">
				<h2>
					查看APP信息 ${devUser.devname}-<i class="fa fa-user"></i>
				</h2>
				<div class="clearfix"></div>
			</div>
          <div class="x_content">
            <form action="${pageContext.request.contextPath }/devApp/appInfoUpdate" method="post" enctype="multipart/form-data"
            class="form-horizontal form-label-left" novalidate>
              <span class="section">APP基础信息</span>
              <input type="hidden" name="id" value="${appInfo.id }" />

              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwarename">软件名称<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.softwarename }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="apkname">APK名称<span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.apkname }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="supportrom">支持ROM<span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.supportrom }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="interfacelanguage">页面语言 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.interfacelanguage }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="softwaresize">软件大小 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.softwaresize }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloads">下载次数 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.downloads }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="flatformid">所属平台 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.flatformName }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="level1">软件分类 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.level1 }>${appInfo.level2 }>${appInfo.level3 }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="status">APP状态 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.statusName }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="appinfo">应用简介 <span class="required">*</span>
                </label>
                 <div class="col-md-6 col-sm-6 col-xs-12">
                  <input id="softwarename" name="softwarename" readonly="readonly" value="${appInfo.appinfo }" class="form-control col-md-7 col-xs-12" data-validate-length-range="6" data-validate-words="2" name="name" placeholder="both name(s) e.g Jon Doe" required="required" type="text">
                </div>
              </div>
              <div class="item form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="occupation">LOGO图片<span class="required">*</span>
                </label>
                <div class="col-md-6 col-sm-6 col-xs-12">
                	<img src="${appInfo.logopicpath }">
                </div>
              </div>
            </form>
          </div>
        </div>
      </div>
      <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>历史版本列表 <small>${devUser.devname }</small></h2>
                    <div class="clearfix"></div>
                  </div>
                    <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>软件名称</th>
                          <th>版本号</th>
                          <th>版本大小</th>
                          <th>发布状态</th>
                          <th>APK文件下载</th>
                          <th>最新更新时间</th>
                        </tr>
                      </thead>
                      <tbody>
                       <c:forEach items="${appVersionList }" var="appVersion">
                        <tr>
                          <td>${appVersion.softwarename }</td> 
                          <td>${appVersion.versionno }</td> 
                          <td>${appVersion.versionsize }</td> 
                          <td>${appVersion.publishname }</td> 
                          <td>${appVersion.downloadlink }</td> 
                          <td>
                          	<fmt:formatDate value="${appVersion.creationdate }" pattern="yyyy-MM-dd HH:mm:ss"/>
                          
                          </td> 
                        </tr>
                       </c:forEach>
                        
                  
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
    </div>
<%@include file="common/footer.jsp" %>